﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Hsp.Novels.Model
{
    /// <summary>
    /// 标准公告
    /// </summary>
    public class StandardAnnouncement
    {
        /// <summary>
        /// 公告编号
        /// </summary>
        [DataMember]
        public string Id { get; set; }

        /// <summary>
        /// 父级编号
        /// </summary>
        [DataMember]
        public string PId { get; set; }

        /// <summary>
        /// 公告分类编号
        /// </summary>
        [DataMember]
        public string TypeId { get; set; }

        /// <summary>
        /// No
        /// </summary>
        [DataMember]
        public string No { get; set; }

        /// <summary>
        /// 公告标题
        /// </summary>
        [DataMember]
        public string Title { get; set; }

        /// <summary>
        /// 发布日期
        /// </summary>
        [DataMember]
        public DateTime IssueDate { get; set; }

        /// <summary>
        /// 来源
        /// </summary>
        [DataMember]
        public int SourceId { get; set; }

        /// <summary>
        /// 公告详细内容地址
        /// </summary>
        [DataMember]
        public string ContentUrl { get; set; }

        /// <summary>
        /// 抓取时间
        /// </summary>
        [DataMember]
        public DateTime GrabTime { get; set; }

    }

    /// <summary>
    /// 公告内容
    /// </summary>
    public class StandardAnnouncementContent
    {
        /// <summary>
        /// 公告编号
        /// </summary>
        [DataMember]
        public string Id { get; set; }

        /// <summary>
        /// 公告内容
        /// </summary>
        [DataMember]
        public string NoticeContent { get; set; }

        /// <summary>
        /// 抓取时间
        /// </summary>
        [DataMember]
        public DateTime GrabTime { get; set; }

    }

    /// <summary>
    /// 公告附件
    /// </summary>
    public class StandardAnnouncementAttachment
    {
        /// <summary>
        /// 公告附件编号
        /// </summary>
        [DataMember]
        public string FileId { get; set; }

        /// <summary>
        /// 公告编号
        /// </summary>
        [DataMember]
        public string AnnouncementId { get; set; }

        /// <summary>
        /// 附件名称
        /// </summary>
        [DataMember]
        public string FileName { get; set; }

        /// <summary>
        /// 扩展名
        /// </summary>
        [DataMember]
        public string FileExt { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        [DataMember]
        public int FileSize { get; set; }

        /// <summary>
        /// 内容类型
        /// </summary>
        [DataMember]
        public string ContentType { get; set; }

        /// <summary>
        /// 文件地址
        /// </summary>
        [DataMember]
        public string FileUrl { get; set; }

        /// <summary>
        /// MD5哈希值
        /// </summary>
        [DataMember]
        public string Md5 { get; set; }

        /// <summary>
        /// 抓取时间
        /// </summary>
        [DataMember]
        public DateTime GrabTime { get; set; }

    }


}
